<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>搜事网-处理规则2[QQ群]</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.js"></script>
<script src="http://malsup.github.com/jquery.form.js"></script>
<script>
	// wait for the DOM to be loaded     
	$(document).ready(function() {
		$('#myForm').ajaxForm(function() {
			//alert("Thank you for your comment!");
		});
	});
</script>
<!-- 引用文件:start-->
<jsp:include page="includes.jsp" />
<%@ page language="java" contentType="text/html;charset=UTF-8"
	import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!-- 引用文件:end-->
</head>
<body>
	<div class="wrap">
		<!-- header:start -->
		<jsp:include page="banner.jsp" />
		<!-- header:end -->
		<div id="body">
			<div id="left" class="wrap">
				<div class="main lside176">
					<jsp:include page="left_banner.jsp" />
					<div class="middle w804">
						<div id="left" class="w804">
							<div class="main">
								<div class="topbox">
									<div class="tabs">
										<a href="listSource.do"><span>媒体源管理</span></a> <a
											href="listSourceCategory.do"><span>媒体分组管理</span></a>
									</div>
								</div>
								<div class="tabContent">
									<div class="listForm">
										<form action="saveQQ.do">
											<s:if test="selectedNum==''">
									您尚未设置QQ帐号，请点击新建按钮，来新建爬取帐号</s:if>
											<s:else>
												<select name="userName">
													<s:iterator value="QQs">
														<s:if test="userName==selectedNum">
															<option value="userName" selected>
																<s:property value="userName" />
															</option>
														</s:if>
														<s:else>
															<option>
																<s:property value="userName" />
															</option>
														</s:else>
													</s:iterator>
												</select> (设置爬取源使用的帐号)<br />
												<br />
												<input type="submit" value='设置' />
												<input type="hidden" name="state" value="2" />
												<!-- 1:add -->
												<input type="hidden" name="entry" value="${entry}" />
											</s:else>
										</form>

										<hr noshade size=0 />
										<center>管理爬取用的qq号</center>
										<form action="deleteQQ.do" method="post">
											<s:if test="pageQQs.size>0">
												<table class="t" width="100%" cellspacing="1">
													<tr class="odd">
														<td></td>
														<td>No</td>
														<td>QQ号</td>
													</tr>
													<s:iterator value="pageQQs">
														<tr>
															<td><input type="checkbox" name="delIds"
																value="${id}" /></td>
															<td><s:property value="id" /></td>
															<td><s:property value="userName" /></td>

														</tr>
													</s:iterator>
												</table>
												<button class="btn modify" type="button" onclick="newQQ()">新建</button>
												<button name="delselect" class="btn delete" type="submit"
													onclick="document.delForm.submit()">删除</button>

											</s:if>
										</form>

										<!-- 分页:start -->
										<div class="pagination">
											<s:if test="curPage!=1">
												<a href="listQQ.do?entry=${entry}&curPage=1&pageSize=${pageSize}">首页</a>
												<a
													href="listQQ.do?entry=${entry}&curPage=${curPage-1}&pageSize=${pageSize}">上一页</a>
											</s:if>
											<s:if test="curPage!=totalPage">
												<a
													href="listQQ.do?entry=${entry}&curPage=${curPage+1}&pageSize=${pageSize}">下一页</a>
												<a
													href="listQQ.do?entry=${entry}&curPage=${totalPage}&pageSize=${pageSize}">末页</a>
											</s:if>
											当前
											<s:property value="curPage" />
											/
											<s:property value="totalPage" />
											页
										</div>
										<!-- 分页:end -->

										<script>
											function newQQ() {
												document
														.getElementById("myForm").style.display = "block";
											}
											function saveQQ() {
												document.getElementById(
														'myForm').submit();
											}
										</script>

										<form id="myForm" action="saveQQ.do" method="post"
											style="display: none">
											QQ号: <input type="text" name="userName" /><br /> QQ 密码: <input
												type="text" name="password" /><br /> <input type="hidden"
												name="entry" value="${entry}" /> <input type="hidden"
												value="1" name="state" />
											<!-- 1:add -->
											<input type="button" onclick="saveQQ()" value="新建" />
										</form>

									</div>
								</div>
							</div>
						</div>
					</div>
					<jsp:include page="footer.jsp" />
					<div class="clear"></div>
				</div>
			</div>
		</div>
	</div>

	<div class="dialogLayer" id="dialog" style='display: none'>
		<div class="mask">
			<iframe frameborder="0" width="100%" height="100%"
				src="../transparent.html" allowtransparency="true"></iframe>
		</div>
		<div class="pos1" style="width: 600px;">
			<div class="pos2">
				<div class="dialog">
					<a class="close" href="javascript:void(0)"
						onclick="var P='parentNode'; this[P][P][P][P].style.display='none'"></a>
					<form action="#" enctype="application/x-www-form-urlencoded"
						method="post">
						<h1>新建用户组</h1>

						<div>
							<table class="infoTable" width="100%" cellspacing="1">

								<tr>
									<td class="h">用户组名</td>
									<td><label><span class="inputtxt"> <input
												type="text" name="" value="23" />
										</span></label></td>
									<td class="h">角色名</td>
									<td><label><span class="inputtxt"> <input
												type="text" name="" value="23" />
										</span></label></td>
								</tr>

								<tr>
									<td class="h">权限</td>
									<td><label><span class="inputtxt"> <input
												type="text" name="" value="" />
										</span></label></td>
									<td class="h"></td>
									<td></td>
								</tr>







							</table>
							<hr />
							<p>
								<button class="btn" type="submit">确认</button>
								&emsp;
								<button class="btn" type="button"
									onclick="document.getElementById('dialog').style.display='none'">取消</button>
							</p>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>


</body>
</html>
